﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

#pragma warning disable CS8618
namespace OpenAiProxy.API.Models
{
    /// <summary>
    /// 留言表
    /// </summary>
    [Table("feedback")]
    public class Feedback
    {
        [Key]
        [Column("id", TypeName = "varchar(32)")]
        public string Id { get; set; }

        /// <summary>
        /// 账户id
        /// </summary>
        [Required]
        [Column("account_id", TypeName = "varchar(32)")]
        public string AccountId { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Column("name", TypeName = "varchar(50)")]
        public string Name { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Required]
        [Column("content", TypeName = "text")]
        public string Content { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        [Column("create_time", TypeName = "datetime")]
        public DateTime? CreateTime { get; set; }
    }
}
